package com.example.g7640.entity;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author  
 * @since 2024-03-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * Primary Key
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * Vendor ID (Foreign Key)
     */
    private Integer vid;

    /**
     * Product Name
     */
    private String name;

    /**
     * Price
     */
    private Double price;

    /**
     * Up to 3
     */
    private String tags;

    /**
     * 0 shelf on, 1 shelf off
     */
    private String status;

    /**
     * Product Inventory
     */
    private Integer inventory;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt = LocalDateTime.now();


}
